/** 搜索模型 */
export interface ISearchField {
  field: string
  type: FieldTypeEnum
  placeholder?: string | Array<string>
  options?: Array<ISelectOption>
  format?: Function // 格式化
  disabled?: boolean
  text?: string
  value?: any
  width?: number
  optionFilterProp?: string
}

export enum FieldTypeEnum {
  STRING = 'string',
  SELECT = 'select',
  SELECTMULTIPLE = 'selectMultiple',
  DATE = 'date',
  SELECT_TREE = 'selectTree',
}

export interface ISelectOption {
  value: string | any
  label?: string | any
  disabled?: boolean
  [key: string]: any
}
